home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50b Issue 142 (CD142b) (August 1998).iso / full / nt / MSSql / setup.bat next >
Encoding:
DOS Batch File  |  1997-11-10  |  1.9 KB  |  68 lines

  1. @echo off
  2. cls
  3. echo Microsoft SQL Server Version 6.5, 120-Day Evaluation Copy
  4. echo.
  5. if (%TEMP%)==() goto TEMPERROR
  6. goto TEMPOKAY
  7. :TEMPERROR
  8. echo Setup cannot run: You system doesn't have a valid system TEMP
  9. echo variable defined.  You may define a TEMP variable using the SET
  10. echo command, and then rerun setup.
  11. goto PAUSEME
  12. :TEMPOKAY
  13. if /i (%OS%)==(Windows_NT) goto OSOKAY
  14. :OSERROR
  15. echo Your Operating System cannot be determined.  You may be
  16. echo attempting to install this software on a system that is
  17. echo not running Windows NT 4.0 or higher.
  18. goto PAUSEME
  19. :OSOKAY
  20. echo This will extract the files necessary for the SQL Server Evaluation Copy.
  21. echo Setup requires approximately 70MB of storage in your %TEMP% directory.
  22. echo.
  23. echo You currently have the following disk free space in %TEMP%:
  24. dir %TEMP% | find "bytes free"
  25. echo.
  26. echo Note: This setup cannot be run from a UNC path, only from a local
  27. echo drive or a mapped drive.
  28. echo.
  29. echo If you wish to cancel, please hit CTRL-C at this time,
  30. echo or any other key to continue with the installation.
  31. echo.
  32. pause>NUL
  33. if /i (%PROCESSOR_ARCHITECTURE%)==(x86)   goto WINNT
  34. if /i (%PROCESSOR_ARCHITECTURE%)==(ALPHA) goto ALPHA
  35. :PROCESSORERROR
  36. echo Your Processor Architecture cannot be determined.  You may be
  37. echo attempting to install this software on an unsupported platform.
  38. goto PAUSEME
  39. :ALPHA
  40. md %TEMP%\~sql~tmp.~__>NUL
  41. alpha\sqlaxp.exe -deo %TEMP%\~sql~tmp.~__\
  42. if ERRORLEVEL == 255 goto ALPHAOK
  43. if ERRORLEVEL == 1 goto ZIPERROR
  44. :ALPHAOK
  45. pushd %TEMP%\~sql~tmp.~__\alpha
  46. setup.exe
  47. popd
  48. goto CLEANUP
  49. :WINNT
  50. md %TEMP%\~sql~tmp.~__>NUL
  51. i386\sqlx86.exe -deo %TEMP%\~sql~tmp.~__\
  52. if ERRORLEVEL == 255 goto WINOK
  53. if ERRORLEVEL == 1 goto ZIPERROR
  54. :WINOKAY
  55. pushd %TEMP%\~sql~tmp.~__\i386
  56. setup.exe
  57. popd
  58. goto CLEANUP
  59. :ZIPERROR
  60. echo An error occured during file extraction.
  61. :CLEANUP
  62. echo Cleaning up...
  63. rd /Q /S %TEMP%\~sql~tmp.~__>NUL
  64. :PAUSEME
  65. echo.
  66. pause
  67. :EXIT
  68.